import 'package:garbage_classification/utils/http-manager.dart';

getResouKey() async {
  try {
    var response = await HttpUtils.request(
      "/garbage/resou",
      method: HttpUtils.GET,
    );
    return response['data'];
  } catch (e) {
    print(e);
  }
}

search(String key) async {
  try {
    var response = await HttpUtils.request(
      "/garbage/search?key=" + key,
      method: HttpUtils.GET,
    );
    return response['data'];
  } catch (e) {
    print(e);
  }
}
